<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$error = '';
if($_POST){
    $username = $_POST['username'];
    $password = $_POST['password'];
    
    echo $username;
    echo '  -  '.$password;
    //check login
    $error = 'U sss';
}
?>
<form action="" method="POST">
    <?php echo $error; ?>
    <input type="text" name="username"/>
    <input type="password" name="password" />
    <input type="submit" value="Submit"/>
</form>
